/**
 *
 */
package MongoDAL;

import DALFactory.*;

/**
 * MongoDB数据库工厂<br> 继承了了DALFactory<br> 负责实现DALFactory的方法。<br>
 *
 * @author kocio
 */
public class MongodbFactory implements IDALFactory {

    /**
     *
     * @return
     */
    @Override
    public IDataMapper CreateDataMapper() {
        return new MongoDataMapper();
    }

    /**
     *
     * @param UserName
     * @param Passwd
     * @return
     */
    @Override
    public ILogin Login(String UserName, String Passwd) {
        return new MongoLogin(UserName, Passwd);
    }

    /**
     *
     * @return
     */
    @Override
    public IDALStatement CreateStatement() {
        return new MongoStatement();
    }

    /**
     *
     * @return
     */
    @Override
    public IDataMapper2 CreateDataMapper2() {
        return new MongoDataMapper2();
    }

    /**
     *
     * @return
     */
    @Override
    public IDataMapper3 CreateDataMapper3() {
        return new MongoDataMapper3();
    }

    @Override
    public IDataProcess CreateDataProcess() {
        return new MongoDataProcess();
    }
    


    @Override
    public IRouteMapper CreateRouteMapper() {
       return  new MongoRouteMapper();
    }

	@Override
	public IDataCommentMapper CreateCommentMapper() {

		return new MongoDataCommentMapper();
	}

	@Override
	public IDataSearchLogMapper CreatDataSearchLogMapper() {
		// TODO Auto-generated method stub
		return new MongoDataSearchLogMapper();
	}
}
